package cn.virens.common.boot.dubbo.consumer.converter;

import org.dromara.hutool.core.convert.ConvertUtil;
import org.springframework.core.convert.converter.Converter;

import java.math.BigDecimal;

public class BigDecimalConverter implements Converter<String, BigDecimal> {

    @Override
    public BigDecimal convert(String source) {
        return ConvertUtil.toBigDecimal(source, null);
    }
}
